/* GSStocksDetailBean.java
 *
 * Project/Product: JZCG-XMBUS
 *
 * Modify Information:
 * =============================================================================
 *   Author	Date       Description
 *   ----------	---------- ---------------------------------------------------
 *   peng.ning	2008-8-28	First release
 *
 * Licensed Materials - Property of APEP
 * =============================================================================
 *    (C) COPYRIGHT Shanghai Auto Mart E-Procurement Co., Ltd. 2007 - 2008
 *    All Rights Reserved.
 *
 *    This software is the confidential and proprietary information of
 *    Shanghai Auto Mart E-Procurement Co., Ltd. ("Confidential Information").
 *    You shall not disclose such Confidential Information and shall use it only
 *    in accordance with the terms of the license agreement you entered into 
 *    with Shanghai Auto Mart E-Procurement Co., Ltd.
 *
 * Noties:
 * =============================================================================
 * 
 */

package com.hitrust.gs.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

import com.hitrust.gs.service.GSBaseBean;

public class GSStocksDetailBean implements GSBaseBean {
    private String gs_detail_id;
    private String gs_stocks_id;
    private String gs_manufacture_id;
    private String gs_manufacture_name;
    private String gs_manufacture_type;
    private double gs_detail_unitprice;
    private double gs_detail_count;
    private String gs_detail_use;
    private String gs_detail_state;
    private String gs_detail_remark;
    private String gs_manufacture_category_id;
    private String gs_provider_id;
    private String gs_concentricity_id;
    private String gs_org_state;
    private String gs_prov_state;
    private String gs_contents;
    private String Gs_balance_month;
    private String gs_balance_mode;

    /**
     * @return the gs_balance_mode
     */
    public String getGs_balance_mode() {
        return this.gs_balance_mode;
    }

    /**
     * @param aGs_balance_mode the gs_balance_mode to set
     */
    public void setGs_balance_mode(String aGs_balance_mode) {
        this.gs_balance_mode = aGs_balance_mode;
    }

    /**
     * @return the gs_balance_month
     */
    public String getGs_balance_month() {
        return this.Gs_balance_month;
    }

    /**
     * @param aGs_balance_month the gs_balance_month to set
     */
    public void setGs_balance_month(String aGs_balance_month) {
        this.Gs_balance_month = aGs_balance_month;
    }

    /**
     * @return the gs_org_state
     */
    public String getGs_org_state() {
        return this.gs_org_state;
    }

    /**
     * @param aGs_org_state the gs_org_state to set
     */
    public void setGs_org_state(String aGs_org_state) {
        this.gs_org_state = aGs_org_state;
    }

    /**
     * @return the gs_prov_state
     */
    public String getGs_prov_state() {
        return this.gs_prov_state;
    }

    /**
     * @param aGs_prov_state the gs_prov_state to set
     */
    public void setGs_prov_state(String aGs_prov_state) {
        this.gs_prov_state = aGs_prov_state;
    }

    /**
     * @return the gs_contents
     */
    public String getGs_contents() {
        return this.gs_contents;
    }

    /**
     * @param aGs_contents the gs_contents to set
     */
    public void setGs_contents(String aGs_contents) {
        this.gs_contents = aGs_contents;
    }

    /**
     * @return the gs_manufacture_category_id
     */
    public String getGs_manufacture_category_id() {
        return this.gs_manufacture_category_id;
    }

    /**
     * @param aGs_manufacture_category_id the gs_manufacture_category_id to set
     */
    public void setGs_manufacture_category_id(String aGs_manufacture_category_id) {
        this.gs_manufacture_category_id = aGs_manufacture_category_id;
    }

    /**
     * @return the gs_provider_id
     */
    public String getGs_provider_id() {
        return this.gs_provider_id;
    }

    /**
     * @param aGs_provider_id the gs_provider_id to set
     */
    public void setGs_provider_id(String aGs_provider_id) {
        this.gs_provider_id = aGs_provider_id;
    }

    /**
     * @return the gs_concentricity_id
     */
    public String getGs_concentricity_id() {
        return this.gs_concentricity_id;
    }

    /**
     * @param aGs_concentricity_id the gs_concentricity_id to set
     */
    public void setGs_concentricity_id(String aGs_concentricity_id) {
        this.gs_concentricity_id = aGs_concentricity_id;
    }

    /**
     * @return the gs_detail_id
     */
    public String getGs_detail_id() {
        return this.gs_detail_id;
    }

    /**
     * @param aGs_detail_id the gs_detail_id to set
     */
    public void setGs_detail_id(String aGs_detail_id) {
        this.gs_detail_id = aGs_detail_id;
    }

    /**
     * @return the gs_stocks_id
     */
    public String getGs_stocks_id() {
        return this.gs_stocks_id;
    }

    /**
     * @param aGs_stocks_id the gs_stocks_id to set
     */
    public void setGs_stocks_id(String aGs_stocks_id) {
        this.gs_stocks_id = aGs_stocks_id;
    }

    /**
     * @return the gs_manufacture_id
     */
    public String getGs_manufacture_id() {
        return this.gs_manufacture_id;
    }

    /**
     * @param aGs_manufacture_id the gs_manufacture_id to set
     */
    public void setGs_manufacture_id(String aGs_manufacture_id) {
        this.gs_manufacture_id = aGs_manufacture_id;
    }

    /**
     * @return the gs_manufacture_name
     */
    public String getGs_manufacture_name() {
        return this.gs_manufacture_name;
    }

    /**
     * @param aGs_manufacture_name the gs_manufacture_name to set
     */
    public void setGs_manufacture_name(String aGs_manufacture_name) {
        this.gs_manufacture_name = aGs_manufacture_name;
    }

    /**
     * @return the gs_manufacture_type
     */
    public String getGs_manufacture_type() {
        return this.gs_manufacture_type;
    }

    /**
     * @param aGs_manufacture_type the gs_manufacture_type to set
     */
    public void setGs_manufacture_type(String aGs_manufacture_type) {
        this.gs_manufacture_type = aGs_manufacture_type;
    }

    /**
     * @return the gs_detail_unitprice
     */
    public double getGs_detail_unitprice() {
        return this.gs_detail_unitprice;
    }

    /**
     * @param aGs_detail_unitprice the gs_detail_unitprice to set
     */
    public void setGs_detail_unitprice(double aGs_detail_unitprice) {
        this.gs_detail_unitprice = aGs_detail_unitprice;
    }

    /**
     * @return the gs_detail_count
     */
    public double getGs_detail_count() {
        return this.gs_detail_count;
    }

    /**
     * @param aGs_detail_count the gs_detail_count to set
     */
    public void setGs_detail_count(double aGs_detail_count) {
        this.gs_detail_count = aGs_detail_count;
    }

    /**
     * @return the gs_detail_use
     */
    public String getGs_detail_use() {
        return this.gs_detail_use;
    }

    /**
     * @param aGs_detail_use the gs_detail_use to set
     */
    public void setGs_detail_use(String aGs_detail_use) {
        this.gs_detail_use = aGs_detail_use;
    }

    /**
     * @return the gs_detail_state
     */
    public String getGs_detail_state() {
        return this.gs_detail_state;
    }

    /**
     * @param aGs_detail_state the gs_detail_state to set
     */
    public void setGs_detail_state(String aGs_detail_state) {
        this.gs_detail_state = aGs_detail_state;
    }

    /**
     * @return the gs_detail_remark
     */
    public String getGs_detail_remark() {
        return this.gs_detail_remark;
    }

    /**
     * @param aGs_detail_remark the gs_detail_remark to set
     */
    public void setGs_detail_remark(String aGs_detail_remark) {
        this.gs_detail_remark = aGs_detail_remark;
    }

    /* (non-Javadoc)
     * @see com.hitrust.gs.service.GSBaseBean#process(java.sql.ResultSet)
     */
    public Object process(ResultSet aResultSet) throws SQLException {
        // TODO Auto-generated method stub
        GSStocksDetailBean sdbean=new GSStocksDetailBean();
        sdbean.gs_detail_id=aResultSet.getString("gs_detail_id")==null?"":aResultSet.getString("gs_detail_id").trim();
        sdbean.gs_stocks_id=aResultSet.getString("gs_stocks_id")==null?"":aResultSet.getString("gs_stocks_id").trim();
        sdbean.gs_manufacture_id=aResultSet.getString("gs_manufacture_id")==null?"":aResultSet.getString("gs_manufacture_id").trim();
        sdbean.gs_manufacture_name=aResultSet.getString("gs_manufacture_name")==null?"":aResultSet.getString("gs_manufacture_name").trim();
        sdbean.gs_manufacture_type=aResultSet.getString("gs_manufacture_type")==null?"":aResultSet.getString("gs_manufacture_type").trim();
        sdbean.gs_detail_unitprice=aResultSet.getDouble("gs_detail_unitprice")==0?0.00:aResultSet.getDouble("gs_detail_unitprice");
        sdbean.gs_detail_count=aResultSet.getDouble("gs_detail_count")==0?0.00:aResultSet.getDouble("gs_detail_count");
        sdbean.gs_detail_use=aResultSet.getString("gs_detail_use")==null?"":aResultSet.getString("gs_detail_use").trim();
        sdbean.gs_detail_state=aResultSet.getString("gs_detail_state")==null?"":aResultSet.getString("gs_detail_state").trim();
        sdbean.gs_detail_remark=aResultSet.getString("gs_detail_remark")==null?"":aResultSet.getString("gs_detail_remark").trim();
        sdbean.gs_manufacture_category_id=aResultSet.getString("gs_manufacture_category_id")==null?"":aResultSet.getString("gs_manufacture_category_id").trim();
        sdbean.gs_concentricity_id=aResultSet.getString("gs_concentricity_id")==null?"":aResultSet.getString("gs_concentricity_id").trim();
        sdbean.gs_provider_id=aResultSet.getString("gs_provider_id")==null?"":aResultSet.getString("gs_provider_id").trim();
        sdbean.gs_org_state=aResultSet.getString("gs_org_state")==null?"":aResultSet.getString("gs_org_state").trim();
        sdbean.gs_prov_state=aResultSet.getString("gs_prov_state")==null?"":aResultSet.getString("gs_prov_state").trim();
        sdbean.gs_contents=aResultSet.getString("gs_contents")==null?"":aResultSet.getString("gs_contents").trim();
        sdbean.Gs_balance_month=aResultSet.getString("Gs_balance_month")==null?"":aResultSet.getString("Gs_balance_month").trim();
        sdbean.gs_balance_mode=aResultSet.getString("gs_balance_mode")==null?"0":aResultSet.getString("gs_balance_mode").trim();
        return sdbean;
    }

}
